package org.suk.dp.state;

/**
 * Description: 工作类<br/>
 * @version V1.0  2017/6/21 11:22  by 石冬冬(dongdong.shi@ucarinc.com) - Heil Hitler
 */
public class Work {
    private int hour;
    private boolean finish = false;
    private State current;

    public Work() {
        this.current = new ForenoonState();
    }

    public int getHour() {
        return hour;
    }

    public void setHour(int hour) {
        this.hour = hour;
    }

    public boolean isFinish() {
        return finish;
    }

    public void setFinish(boolean finish) {
        this.finish = finish;
    }

    public void setState(State state) {
        this.current = state;
    }

    public void writeProgram(){
        this.current.writeProgram(this);
    }
}
